<?php include_once('/includes/functions.php');?>
<!DOCTYPE HTML>
<html lang="zh-CN" class="ua-windows ua-webkit">
<head>
<meta charset="UTF-8">
<meta content="" name="description">
<title>Voca.Português</title>
<link rel="stylesheet" href="/assets/stylesheets/main.css"></link>
<script type="text/javascript" src="/assets/javascripts/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="/assets/javascripts/json2.js"></script>
<script type="text/javascript" src="/assets/javascripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="/assets/javascripts/voca_register_and_login.js"></script>
</head>
<body class="login_page">
<div class="login_panel">
	<img src="/assets/images/logo.jpg"/>
	<div class="title"><?php _('用户登录')?></div>
	<form id="login_form" method="post" action="/handlers/login_handler.php">
		<div><label for="email"><?php _('邮箱')?></label>
		<input type="email" name="email" id="email" required/>
		</div>
		<div><label for="password"><?php _('密码')?></label>
		<input type="password" name="password" id="password" required/>
		</div>
		<div><label for="code"><?php _('验证码')?></label>
		<input type="text" name="code" id="code" class="code_input"/>
		<a href="#" title="<?php _('若看不清图片，请点击图片刷新')?>" id="refresh_code">
			<img class="code" id="code_img" src="/voca_captcha"/>
		</a>
		</div>
		<div class="submit">
			<input type="submit" value="<?php _('登  录')?>" class="btn"/>
			<?php if(isset($_REQUEST['errorcode'])):?>
			<span class="error"><?php _('用户名和密码不匹配，请检查后重新登录。')?></span>
			<?php endif ?>
		</div>
	</form>
	<div class="register">
		<span><?php _('还不是用户？现在就注册吧！') ?></span>
		<a href="/register" class="btn_register"/>注册为用户</a>
	</div>
</div>
</body>
</html>